using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._RasterProperties
{
    /// <summary>
    /// <para>Get Cell Value</para>
    /// <para>Retrieves the value of a given pixel using its x, y coordinates.</para>
    /// <para>使用给定像素的 x、y 坐标检索其值。</para>
    /// </summary>    
    [DisplayName("Get Cell Value")]
    public class GetCellValue : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GetCellValue()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input Raster</para>
        /// <para>The raster that you want to query.</para>
        /// <para>要查询的栅格。</para>
        /// </param>
        /// <param name="_location_point">
        /// <para>Location</para>
        /// <para>The X and Y coordinates of the pixel location.</para>
        /// <para>像素位置的 X 和 Y 坐标。</para>
        /// </param>
        public GetCellValue(object _in_raster, object _location_point)
        {
            this._in_raster = _in_raster;
            this._location_point = _location_point;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Get Cell Value";

        public override string CallName => "management.GetCellValue";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_raster, _location_point, _band_index, _out_string];

        /// <summary>
        /// <para>Input Raster</para>
        /// <para>The raster that you want to query.</para>
        /// <para>要查询的栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Location</para>
        /// <para>The X and Y coordinates of the pixel location.</para>
        /// <para>像素位置的 X 和 Y 坐标。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Location")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _location_point { get; set; }


        /// <summary>
        /// <para>Bands</para>
        /// <para>Specify the bands that you want to query. Leave blank to query all bands in a multiband dataset.</para>
        /// <para>指定要查询的波段。留空可查询多波段数据集中的所有波段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Bands")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _band_index { get; set; } = null;


        /// <summary>
        /// <para>Pixel Value</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Pixel Value")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_string { get; set; }


        public GetCellValue SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}